Side navigation
Ticket #3117: dimensions[5759].diff
File dimensions[5759].diff, 0.7 KB (added by flesler, July 02, 2008 02:35PM UTC)
Index: jquery/src/core.js
===================================================================
--- jquery/src/core.js (revision 5759)
+++ jquery/src/core.js (working copy)
@@ -1339,7 +1339,7 @@
// Get window width or height
return this[0] == window ?
// Opera reports document.body.client[Width/Height] properly in both quirks and standards
- jQuery.browser.opera && document.body[ "client" + name ] ||
+ jQuery.browser.opera && parseFloat(jQuery.browser.version) < 9.5 && document.body[ "client" + name ] ||
// Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)
jQuery.browser.safari && window[ "inner" + name ] ||
Download in other formats:
Original Format
File dimensions[5759].diff, 0.7 KB (added by flesler, July 02, 2008 02:35PM UTC)
Index: jquery/src/core.js
===================================================================
--- jquery/src/core.js (revision 5759)
+++ jquery/src/core.js (working copy)
@@ -1339,7 +1339,7 @@
// Get window width or height
return this[0] == window ?
// Opera reports document.body.client[Width/Height] properly in both quirks and standards
- jQuery.browser.opera && document.body[ "client" + name ] ||
+ jQuery.browser.opera && parseFloat(jQuery.browser.version) < 9.5 && document.body[ "client" + name ] ||
// Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)
jQuery.browser.safari && window[ "inner" + name ] ||